package org.dyz.chatroom.client.views;

import javax.security.auth.callback.Callback;
import javax.security.auth.login.LoginContext;
import javax.security.auth.login.LoginException;
import javax.security.auth.spi.LoginModule;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.part.ViewPart;

public class SquareView extends ViewPart{

	public final static String SQUAREVIEW_ID="org.dyz.chatroom.client.views.SquareView";
	@Override
	public void createPartControl(Composite arg0) {
		// TODO Auto-generated method stub
		Shell shell=arg0.getShell();
		try {
			LoginContext context =new LoginContext("haha");
			context.login();
			LoginModule module ;
			Callback callback;
//			module.
//			context.	
		} catch (LoginException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	@Override
	public void setFocus() {
		// TODO Auto-generated method stub
		
	}

}
